/*This file is part of WZLibCP.

 *  WZLibCP is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

 *  WZLibCP is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License
    along with WZLibCP.  If not, see <http://www.gnu.org/licenses/>.
		
	Author: calc0000
*/
#include "stdafx.h"
#include "WZObject.h"

namespace WZLib{
	std::string&			WZObject::name	(){return this->_name;}
	WZObject::ObjectType&	WZObject::type	(){return this->_type;}
	WZObject**				WZObject::parent(){return &(this->_parent);}
	bool					WZObject::parsed(){return this->_parsed;}
	ctor WZObject::WZObject(std::string name,WZObject::ObjectType type){
		this->_name=name;
		this->_type=type;
		this->_parent=NULL;
		this->_parsed=false;
	}
	dtor WZObject::~WZObject(){
	}
	std::string WZObject::typeName(WZObject::ObjectType type){
		switch(type){
			case Unknown:
				return "Unknown";
			case File:
				return "WZFile";
			case Directory:
				return "WZDirectory";
			case Image:
				return "WZImage";
			case Property:
				return "WZImageProperty";
		}
		return "Unidentified";
	}
};